package com.ruoyi.qymlxin.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 order
 * 
 * @author qymlxin
 * @date 2022-05-03
 */
public class IOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @Excel(name = "主键id")
    private Long id;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long count;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private BigDecimal totalprice;

    /** 地址id，对应地址表 */
    @Excel(name = "地址id，对应地址表")
    private Long addressid;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userid;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long state;

    /** 配送周期 */
    @Excel(name = "配送周期")
    private String cycle;

    /** 付款方式 */
    @Excel(name = "付款方式")
    private String paytype;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsid;

    /** 备注 */
    @Excel(name = "备注")
    private String tip;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCount(Long count) 
    {
        this.count = count;
    }

    public Long getCount() 
    {
        return count;
    }
    public void setTotalprice(BigDecimal totalprice) 
    {
        this.totalprice = totalprice;
    }

    public BigDecimal getTotalprice() 
    {
        return totalprice;
    }
    public void setAddressid(Long addressid) 
    {
        this.addressid = addressid;
    }

    public Long getAddressid() 
    {
        return addressid;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setCycle(String cycle) 
    {
        this.cycle = cycle;
    }

    public String getCycle() 
    {
        return cycle;
    }
    public void setPaytype(String paytype) 
    {
        this.paytype = paytype;
    }

    public String getPaytype() 
    {
        return paytype;
    }
    public void setGoodsid(Long goodsid) 
    {
        this.goodsid = goodsid;
    }

    public Long getGoodsid() 
    {
        return goodsid;
    }
    public void setTip(String tip) 
    {
        this.tip = tip;
    }

    public String getTip() 
    {
        return tip;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("count", getCount())
            .append("totalprice", getTotalprice())
            .append("addressid", getAddressid())
            .append("userid", getUserid())
            .append("state", getState())
            .append("cycle", getCycle())
            .append("paytype", getPaytype())
            .append("goodsid", getGoodsid())
            .append("tip", getTip())
            .toString();
    }
}
